package com.yjk.dzpoke.websocket.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class Choice {
    private String player;
    /**
     * 过
     */
    private Boolean g;
    /**
     * 下注
     */
    private Boolean xz;
    /**
     * 跟注
     */
    private Boolean gz;
    /**
     * 加注
     */
    private Boolean jz;
    /**
     * 梭哈
     */
    private Boolean sh;
    /**
     * 梭哈玩家跳过
     */
    private Boolean jump = false;
    /**
     * 轮次结束
     */
    private Boolean end = false;

    public Choice(String player, Boolean g, Boolean xz, Boolean gz, Boolean jz, Boolean sh) {
        this.player = player;
        this.g = g;
        this.xz = xz;
        this.gz = gz;
        this.jz = jz;
        this.sh = sh;
    }

    public static Choice jump() {
        Choice choice = new Choice();
        choice.jump = true;
        return choice;
    }

    public static Choice end() {
        Choice choice = new Choice();
        choice.end = true;
        return choice;
    }
}
